package com.bzy.bladeauthapi.fegin;

import com.baomidou.mybatisplus.extension.api.R;
import com.bzy.bladeauthapi.entry.Jurisdiction;
import com.bzy.comment.servicename.ServiceName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 权限fegin接口;
 */
@FeignClient(value = ServiceName.AUTHER)
public interface JurisdictionFeginClient {


    String jurisdiction = "jurisdiction";

    String add = jurisdiction + "add";
    String uodate = jurisdiction + "uodate";
    String delete = jurisdiction + "delete";
    String selOne = jurisdiction + "selOne";
    String selList = jurisdiction + "selList";

    /**
     * 添加权限;
     */

    @PostMapping(add)
    R add(@RequestBody Jurisdiction userJurisdiction);


    @PostMapping(uodate)
    R uodate(@RequestBody Jurisdiction userJurisdiction);



    @PostMapping(delete)
    R delete(@RequestBody Jurisdiction userJurisdiction);


    @PostMapping(selOne)
    R selOne(@RequestBody Jurisdiction userJurisdiction);


    @PostMapping(selList)
    R selList(@RequestBody Jurisdiction userJurisdiction);
}
